<?$this->load->view('admin/header');?>
<!-- Content Area -->
<div id="middlepart">
    <!-- Left column -->
    <div id="leftcolumn">
        <h1>Visitor Statistics</h1>

        <?$this->load->view('admin/system_messages');?>

        <!-- Tables 1 -->
        <table border="0" cellspacing="0" cellpadding="0" width="100%">
            <thead>
                <tr>
                    <th>Date</th>
                    <th>Unique Visitors</th>
                    <th>Total Hits</th>
                </tr>
            </thead>
            <tbody>
                <?foreach ($this->mdl_visitors->get_summary() as $visitor) {?>
                <tr>
                    <td><?=anchor('admin_visitors/detail/date/' . $visitor->g_date, $visitor->g_date);?></td>
                    <td><?=$visitor->num_unique;?></td>
                    <td><?=$visitor->num_total;?></td>
                </tr>
                <?}?>
            </tbody>
        </table>
        <!-- Tables 1 -->
        <br />

        <div style="text-align: center;"><?=$this->mdl_visitors->page_links;?></div>

        <br />
    </div>


</div>
<!-- Content -->

<?$this->load->view('admin/footer');?>